package com.tsinghuabigdata.edu.ddmath.module.ddwork.bean;

import java.io.Serializable;

/**
 * 题目信息
 */
public class QuestionInfo implements Serializable {

    private static final long serialVersionUID = 2879881565252216167L;

    public static final String TYPE_CHOICE = "choice";                  //单项选择题
    public static final String TYPE_MUTICHOICE = "mutichoice";          //多选题
    public static final String TYPE_FILL_IN = "fill_in";                //填空题
    public static final String TYPE_JUDGE = "judge";                    //判断题
    public static final String TYPE_SOLUTION = "solution";              //解答题
    public static final String TYPE_CALCULATION = "calculation";        //计算题


    protected String questionId;
    protected String questionType;

    protected int indexInPaper;       //题顺序索引

    protected int numInPaper;      //题编号
    protected String stem;
    protected String stemGraph;
    protected String subStem;
    protected String subStemGraph;

    protected String stemLatexGraph;
    protected String subLatexGraph;
    protected String answerUrl;           //对应答案图片的URL
    protected String questionArea;        //题目答案区域信息 [{“x”:0.322323, “y”:0.2222222, “width”:1.0, “height”:0.1412}]
    protected String answerArea;         //答案批改标示区域信息 [{“x”:0.322323, “y”:0.2222222, “width”:1.0, “height”:0.1412}]


    public void copy( QuestionInfo questionInfo ){
        questionId      = questionInfo.questionId;
        questionType    = questionInfo.questionType;
        indexInPaper    = questionInfo.indexInPaper;
        numInPaper      = questionInfo.numInPaper;
        stem            = questionInfo.stem;
        stemGraph       = questionInfo.stemGraph;
        subStem         = questionInfo.subStem;
        subStemGraph    = questionInfo.subStemGraph;
        stemLatexGraph  = questionInfo.stemLatexGraph;
        subLatexGraph   = questionInfo.subLatexGraph;
        answerUrl       = questionInfo.answerUrl;
        questionArea    = questionInfo.questionArea;
        answerArea      = questionInfo.answerArea;
    }

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public String getQuestionType() {
        return questionType;
    }

    public void setQuestionType(String questionType) {
        this.questionType = questionType;
    }

    public int getIndexInPaper() {
        return indexInPaper;
    }

    public void setIndexInPaper(int indexInPaper) {
        this.indexInPaper = indexInPaper;
    }

    public int getNumInPaper() {
        return numInPaper;
    }

    public void setNumInPaper(int numInPaper) {
        this.numInPaper = numInPaper;
    }

    public String getStem() {
        return stem;
    }

    public void setStem(String stem) {
        this.stem = stem;
    }

    public String getStemGraph() {
        return stemGraph;
    }

    public void setStemGraph(String stemGraph) {
        this.stemGraph = stemGraph;
    }

    public String getSubStem() {
        return subStem;
    }

    public void setSubStem(String subStem) {
        this.subStem = subStem;
    }

    public String getSubStemGraph() {
        return subStemGraph;
    }

    public void setSubStemGraph(String subStemGraph) {
        this.subStemGraph = subStemGraph;
    }

    public String getStemLatexGraph() {
        return stemLatexGraph;
    }

    public void setStemLatexGraph(String stemLatexGraph) {
        this.stemLatexGraph = stemLatexGraph;
    }

    public String getSubLatexGraph() {
        return subLatexGraph;
    }

    public void setSubLatexGraph(String subLatexGraph) {
        this.subLatexGraph = subLatexGraph;
    }

    public String getAnswerUrl() {
        return answerUrl;
    }

    public void setAnswerUrl(String answerUrl) {
        this.answerUrl = answerUrl;
    }

    public String getQuestionArea() {
        return questionArea;
    }

    public void setQuestionArea(String questionArea) {
        this.questionArea = questionArea;
    }

    public String getAnswerArea() {
        return answerArea;
    }

    public void setAnswerArea(String answerArea) {
        this.answerArea = answerArea;
    }
}
